import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    routerList: [],
    num: 111,
    setComentObj: {}
  },
  getters: {
  },
  mutations: {
    setRouter (state, newList) {
      state.routerList = newList
    },
    setObj (state, newObj) {
      state.setComentObj = newObj
    }
  },
  actions: {
    getMenu ({ commit }, list) {
      return new Promise((resolve, reject) => {
        if (list) {
          resolve()
        }
      })
    },
    getObj ({ commit }, list) {
      return new Promise((resolve, reject) => {
        if (list) {
          resolve()
        }
      })
    }
  },
  modules: {
  }
})
